<template>
	<view style="padding: 30rpx;">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	import { getParam} from '@/api/common.js'
	export default {
		data() {
			return {
				titles:{
					REGISTRATION_AGREEMENT: '注册协议',
					GUARANTEE_RULES: '担保规则',
					MEMBERSHIP_DESCRIPTION: '会员说明',
					USER_GUIDE: '用户指南',
					STORE_GUIDE: '店铺指南',
					PAYMENT_GUARANTEE: '支付保障',
					ABOUT_THE_PLATFORM: '关于平台',
					MERCHANT_GUIDE: '商家指南',
					PERSONAL_INFORMATION_PROTECTION: '个人信息保护',
					USER_AGREEMENT: '用户协议',
					SERVICE_RULE: '服务规则',
					SERVICE_GUARANTEE: '服务保障',
					INTEGRITY_MANAGEMENT: '诚信管理',
				},
				from: '',
				content: ''
			}
		},
		onLoad(option){
			this.from = option.from
			uni.setNavigationBarTitle({
				title: this.titles[this.from]
			})
			this.getContent()
		},
		methods: {
			getContent(){
				getParam({paramName: this.from}).then(res => {
					this.content = res.result
				})
			}
		}
	}
</script>

<style>

</style>
